/*
 * Copyright (c) 2025 HiSilicon (Shanghai) Technologies Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef RECORDER_PROC_H
#define RECORDER_PROC_H

#include <time.h>
#include "ot_type.h"
#include "ot_af_common.h"
#include "ot_af_tuning_info.h"
#include "ss_af_manager.h"
#include "af_common.h"

#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */

#define MOTOR_KEEP_CODE (-1)

td_s32 AF_PROC_Enable(td_void);
td_s32 AF_PROC_Disable(td_void);
td_void AF_PROC_ForceUpdateOnce(td_void);
td_s32 AF_PROC_WriteMonitorInfo(td_u32 cnt, OT_AF_MonitorInfo *monitorInfo, OT_AF_Mode curAfMode, td_bool exhibitEnable,
                                OT_AF_TuningInfo *tuningParam);
td_s32 AF_PROC_WritePolicyInfo(OT_AF_FocusPolicyInfo *policyInfo);
td_void AF_PROC_WriteAfState(OT_AF_State afState);
td_s32 AF_PROC_WriteMotorInfo(td_s32 curCode, td_s32 validTargetCode, td_u64 motorUseTime);

#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

#endif
